package com.cloudschool.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudschool.content.model.dto.TeachplanDto;
import com.cloudschool.content.model.po.Teachplan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程计划 Mapper 接口
 * </p>
 *
 * @author itcast
 */
public interface TeachplanMapper extends BaseMapper<Teachplan> {
    /**
    * @description 查询某课程的课程计划，组成树型结构
    * @param courseId
    * @return java.util.List<com.cloudschool.content.model.dto.TeachplanDto>
    * @author chenhong
    * @date 2023/3/9 15:28
    */
    public List<TeachplanDto> selectTreeNodes(@Param("courseId") long courseId);
}
